package com.design;


/**
 * 装饰器模式测试
 */
public class MainTest {

    public static void main(String[] args) {
        IMilkTea milkTea =new CoconutMilkTea(new PearlMilkTea(new SimpleMilkTea()));
        System.out.println("奶茶："+milkTea.desc()+"，价格:"+milkTea.cost());
    }
}
